<template>
  <el-menu active-text-color="#ffd04b" background-color="pink" class="el-menu-vertical-demo" default-active="2"
    text-color="black" style="height: 100%;">


    <el-menu-item index="1">
      <span style="font-size: 30px;">工厂ERP</span>
    </el-menu-item>
    <el-menu-item index="2">
      <span>经营总控</span>
    </el-menu-item>
    <el-sub-menu index="100">

      <template #title>
        <svg t="1734572054340" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
          p-id="5831" width="20" height="20">
          <path
            d="M768 448h-128V64h128v128h192v128h-192v128z m192 256a256 256 0 1 1-256-256 256 256 0 0 1 256 256z m-256-128a128 128 0 1 0 128 128 128 128 0 0 0-128-128zM64 128h448v128H64V128z m320 448H64v-128h320v128z m-64 320H64v-128h256v128z"
            fill="#0590DF" p-id="5832"></path>
        </svg><span>权限管理</span>
      </template>
      <el-menu-item index="100-1" @click="jumpto('/RBACFile/RoleView')"><svg t="1734572116798" class="icon"
          viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7005" width="20" height="20">
          <path
            d="M307.2 153.6c56.32 0 102.4 46.08 102.4 102.4s-46.08 102.4-102.4 102.4-102.4-46.08-102.4-102.4 46.08-102.4 102.4-102.4m0-102.4C194.56 51.2 102.4 143.36 102.4 256s92.16 204.8 204.8 204.8 204.8-92.16 204.8-204.8-92.16-204.8-204.8-204.8zM409.6 665.6c56.32 0 102.4 46.08 102.4 102.4v102.4H102.4v-102.4c0-56.32 46.08-102.4 102.4-102.4h204.8m0-102.4H204.8c-112.64 0-204.8 92.16-204.8 204.8v102.4c0 56.32 46.08 102.4 102.4 102.4h409.6c56.32 0 102.4-46.08 102.4-102.4v-102.4c0-112.64-92.16-204.8-204.8-204.8zM768 153.6h204.8c30.72 0 51.2 20.48 51.2 51.2s-20.48 51.2-51.2 51.2h-204.8c-30.72 0-51.2-20.48-51.2-51.2s20.48-51.2 51.2-51.2z m0 307.2h204.8c30.72 0 51.2 20.48 51.2 51.2s-20.48 51.2-51.2 51.2h-204.8c-30.72 0-51.2-20.48-51.2-51.2s20.48-51.2 51.2-51.2z m0 307.2h204.8c30.72 0 51.2 20.48 51.2 51.2s-20.48 51.2-51.2 51.2h-204.8c-30.72 0-51.2-20.48-51.2-51.2s20.48-51.2 51.2-51.2z"
            fill="#1CD8D2" p-id="7006"></path>
        </svg>角色管理</el-menu-item>
      <el-menu-item index="100-2" @click="jumpto('/RBACFile/PermissionView')"><svg t="1734572073901" class="icon"
          viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5993" width="20" height="20">
          <path
            d="M994.048 857.7024a36.4544 36.4544 0 0 0-70.6048 17.8688c5.5808 22.2208 9.4208 44.9024 11.4176 67.8912H89.1904c18.432-216.1152 199.5776-386.4064 420.096-387.7888 0.9216 0 1.7408 0.256 2.6624 0.256a256 256 0 1 0-256-256c0 84.8896 41.7792 159.5904 105.4208 206.1312C160.6144 570.0096 14.6944 758.1696 14.6944 979.8656c0 20.1216 16.3328 36.4544 36.4544 36.4544h921.6a36.4544 36.4544 0 0 0 36.4544-36.4544 494.1312 494.1312 0 0 0-15.1552-122.1632zM512 120.832c98.816 0 179.2 80.384 179.2 179.2s-80.384 179.2-179.2 179.2-179.2-80.384-179.2-179.2 80.384-179.2 179.2-179.2z"
            fill="#438CFF" p-id="5994"></path>
          <path
            d="M579.7376 666.368a38.4 38.4 0 1 0-54.3232 54.3232l129.8432 129.792a38.2976 38.2976 0 0 0 54.272 0l274.6368-274.6368a38.4 38.4 0 1 0-54.3232-54.3232l-247.5008 247.5008-102.6048-102.656z"
            fill="#438CFF" p-id="5995"></path>
        </svg>权限管理</el-menu-item>
    </el-sub-menu>

    <el-sub-menu index="20">
      <template #title>
        <svg t="1734571972003" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
          p-id="4311" width="20" height="20">
          <path
            d="M232.2 645.1v172.7h-84.8V645.1h84.8m43.8-60H103.6c-8.9 0-16.2 7.2-16.2 16.2v260.3c0 8.9 7.2 16.2 16.2 16.2H276c8.9 0 16.2-7.3 16.2-16.2V601.3c0-8.9-7.3-16.2-16.2-16.2zM827.4 645.1v172.7h-84.8V645.1h84.8m43.8-60H698.8c-8.9 0-16.2 7.2-16.2 16.2v260.3c0 8.9 7.2 16.2 16.2 16.2h172.4c8.9 0 16.2-7.3 16.2-16.2V601.3c0-8.9-7.3-16.2-16.2-16.2zM413.7 207.8h144.8V385H413.7z"
            fill="#3FA9F5" p-id="4312"></path>
          <path
            d="M528.5 237.8V355h-84.8V237.8h84.8m45.4-60H398.3c-8.1 0-14.6 6.5-14.6 14.6v208c0 8 6.5 14.6 14.6 14.6h175.6c8.1 0 14.6-6.5 14.6-14.6v-208c0-8.1-6.5-14.6-14.6-14.6z"
            fill="#3FA9F5" p-id="4313"></path>
          <path
            d="M785.2 610.5c-14 0-25.4-11.4-25.4-25.4v-71.2c0-47.1-38.3-85.4-85.4-85.4h-372c-47.1 0-85.4 38.3-85.4 85.4v71.2c0 14-11.4 25.4-25.4 25.4s-25.4-11.4-25.4-25.4V452.2c0-14 11.4-25.4 25.4-25.4h593.6c14 0 25.4 11.4 25.4 25.4v132.9c0 14-11.4 25.4-25.4 25.4z"
            fill="#3FA9F5" p-id="4314"></path>
          <path
            d="M780.6 456.8v12.1c-1.8-4.2-3.8-8.2-6-12.1h6m-578.4 0c-2.2 3.9-4.2 7.9-6 12.1v-12.1h6m583-60H191.6c-30.6 0-55.4 24.8-55.4 55.4v132.9c0 30.6 24.8 55.4 55.4 55.4s55.4-24.8 55.4-55.4v-71.2c0-30.6 24.8-55.4 55.4-55.4h372c30.6 0 55.4 24.8 55.4 55.4v71.2c0 30.6 24.8 55.4 55.4 55.4s55.4-24.8 55.4-55.4V452.2c0-30.6-24.8-55.4-55.4-55.4z"
            fill="#3FA9F5" p-id="4315"></path>
        </svg><span>部门管理</span>
      </template>
      <el-menu-item index="20-1" @click="jumpto('/Department/DepartmentAddView')"><svg t="1734571998002" class="icon"
          viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4476" width="20" height="20">
          <path
            d="M585.14 864V531.85a59.33 59.33 0 0 1 29.27-51.13l79.3-46.65a59.37 59.37 0 0 1 60.18 0l79.29 46.65a59.34 59.34 0 0 1 29.24 51.13V864z m0 0"
            fill="#1792E5" p-id="4477"></path>
          <path
            d="M543.1 978.55H179.57a90 90 0 0 1-89.94-89.94v-619a116.46 116.46 0 0 1 50-95.6L295 66.13a116.85 116.85 0 0 1 132.76 0L583 174a116.44 116.44 0 0 1 50 95.6v619a90 90 0 0 1-89.94 89.94zM361.35 115.48a46.46 46.46 0 0 0-26.4 8.23l-155.3 107.86a46.29 46.29 0 0 0-19.87 38v619a19.85 19.85 0 0 0 19.79 19.83H543.1a19.86 19.86 0 0 0 19.83-19.83v-619a46.29 46.29 0 0 0-19.88-38L387.74 123.71a46.4 46.4 0 0 0-26.39-8.23z m0 0"
            fill="#424242" p-id="4478"></path>
          <path
            d="M898.89 967.21a35.06 35.06 0 0 1-35.06-35.07V468.65a52.4 52.4 0 0 0-23.84-44L525.45 219.37a35.07 35.07 0 0 1 38.35-58.73l314.51 205.24A122.33 122.33 0 0 1 934 468.64v463.49a35.08 35.08 0 0 1-35.06 35.07z m-449-503.7H262.75a35.06 35.06 0 0 1 0-70.11h187.11a35.06 35.06 0 0 1 0 70.11z m0 210.81H262.75a35.07 35.07 0 0 1 0-70.12h187.11a35.07 35.07 0 1 1 0 70.12z m0 0"
            fill="#424242" p-id="4479"></path>
          <path
            d="M748.31 798.34a35.07 35.07 0 0 1-35.07-35.05V550.66a35.07 35.07 0 0 1 70.12 0v212.63a35.07 35.07 0 0 1-35.05 35.05z m0 0"
            fill="#424242" p-id="4480"></path>
        </svg>部门添加</el-menu-item>
    </el-sub-menu>


    <el-sub-menu index="3">
      <template #title>
        <svg t="1734571718326" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
          p-id="3967" width="20" height="20">
          <path
            d="M934.912 240.64L523.264 0l-409.6 239.616 410.624 237.568zM551.936 1013.76l409.6-239.616V295.936L551.936 532.48zM84.992 294.912v479.232l409.6 239.616V531.456l-409.6-236.544z m290.816 345.088l-194.56-111.616c-3.072-2.048-6.144-6.144-6.144-10.24v-64.512c0-9.216 9.216-14.336 17.408-10.24l194.56 111.616c3.072 2.048 6.144 6.144 6.144 10.24v64.512c0 9.216-9.216 14.336-17.408 10.24z"
            fill="#38ADFF" p-id="3968"></path>
        </svg><span>料品档案</span>
      </template>
      <el-menu-item index="3-1" @click="jumpto('/Material/MaterialListView')"><svg t="1734571858213" class="icon"
          viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2806" width="20" height="20">
          <path
            d="M898.07872 241.35168l35.11808 39.552c3.81952 4.68992 7.49056 8.9088 10.95168 12.88704 21.70368 24.93952 35.09248 40.33024 25.4976 102.51264-6.36416 41.07264-26.68032 187.76576-44.38528 315.64288l-0.01024 0.04608c-13.21472 95.42656-24.97536 180.36736-28.40576 203.1104-8.5504 57.21088-55.0912 57.69728-57.15456 57.69728H184.3456s-48.39936 0.8448-57.25184-57.69728c-3.31264-22.24128-14.62784-103.94624-27.47904-196.77696v-0.01024c-17.90976-129.33632-38.8096-280.25856-45.22496-322.01216-9.66656-62.09024 3.7376-77.52704 25.33376-102.4 3.4816-4.01408 7.17312-8.26368 11.01824-12.99968l35.22048-39.552v102.4512h772.11648V241.3568z m-486.2464 278.67648h-100.9664v32.50176h152.41216c-38.58432 39.02976-100.61824 71.12192-162.304 85.72928 8.00768 7.53664 18.37056 20.72576 23.552 30.14656 63.62624-18.59072 127.2576-56.02816 168.63232-102.77888v80.16896h35.328v-81.16736c41.22624 46.57152 105.37984 81.73568 172.40064 98.59584 4.7104-9.4208 14.60224-23.08096 22.13888-29.67552-64.41472-13.2864-126.07488-42.74176-164.68992-81.01888h158.09536v-32.50176h-109.7728c17.96096-18.304 39.92576-44.42112 58.42944-69.24288l-37.6832-12.24704c-12.24704 21.66784-34.85696 53.22752-52.75648 72.54016l23.49568 8.94976H528.4864V429.11744h-35.328v90.91072H420.04992l25.0624-12.71808c-9.4208-18.8416-32.03072-46.16192-52.75648-65.47456l-30.14656 14.1312c19.10272 19.10272 39.46496 45.33248 49.62304 64.06144z m74.69056 187.00288H308.98688v33.44384h165.26848c-22.96832 45.18912-70.31808 73.6768-176.1024 89.4976 6.59456 7.53664 15.07328 23.08096 18.37056 32.50176 118.05696-19.8912 169.95328-57.16992 194.93888-115.58912 34.70336 67.79392 97.39264 102.30272 196.49536 115.11808 4.23936-10.36288 14.1312-25.9072 22.13888-33.91488-92.14464-7.8848-153.20064-35.15904-184.7808-87.61344h173.47584v-33.44384h-76.08832l19.56352-17.89952c-19.31264-12.24704-55.58272-28.73344-82.90304-39.56736l-20.72576 17.89952c26.55232 11.06432 59.76064 27.12064 78.13632 39.56736h-112.72192c3.584-15.74912 6.15424-32.6912 8.20736-50.87232h-37.21216c-1.98656 18.51904-4.54656 35.44064-8.51456 50.87232z"
            fill="#ED7625" p-id="2807"></path>
          <path
            d="M787.79392 182.92736s47.98464 0 47.98464 51.16416v51.16928H188.2624V234.0864c0-51.16416 47.98464-51.16416 47.98464-51.16416h551.54688zM712.51456 51.2s48.60416 0 48.60416 73.18016H275.3792C275.3792 51.2 323.88096 51.2 323.88096 51.2h388.6336z"
            fill="#ED7625" p-id="2808"></path>
        </svg>物料分类</el-menu-item>
      <el-menu-item index="3-2" @click="jumpto('/Material/MaterialessentialView')"><svg t="1734571822906" class="icon"
          viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2641" width="20" height="20">
          <path
            d="M712.51456 51.2s48.60416 0 48.60416 73.18016H275.3792C275.3792 51.2 323.88096 51.2 323.88096 51.2h388.6336zM835.77856 234.09152c0-51.16416-47.98464-51.16416-47.98464-51.16416H236.24704s-47.98464 0-47.98464 51.16416v51.16928h647.51616V234.0864z"
            fill="#ED7625" p-id="2642"></path>
          <path
            d="M933.1968 280.90368l-35.11808-39.552v102.4512H125.96224V241.3568l-35.22048 39.552c-3.84 4.736-7.53664 8.9856-11.01824 12.99456-21.60128 24.8832-35.00032 40.31488-25.33376 102.4 6.41536 41.75872 27.3152 192.67584 45.21984 322.01216v0.01536l0.00512 0.01536c12.8512 92.8256 24.1664 174.52032 27.47904 196.7616C135.95136 973.6448 184.3456 972.8 184.3456 972.8h655.34464c2.06336 0 48.60416-0.4864 57.15456-57.69728 3.42528-22.72256 15.17056-107.50464 28.3648-202.8032l0.04096-0.3072 0.01024-0.04608c17.70496-127.87712 38.02112-274.57024 44.38528-315.648 9.59488-62.17728-3.79392-77.568-25.4976-102.50752a503.39328 503.39328 0 0 1-10.95168-12.88704zM244.19328 642.15552h46.8736a23.33184 23.33184 0 0 1 23.31136 23.31136 23.31136 23.31136 0 0 1-23.31136 23.31136h-46.8736a23.31648 23.31648 0 0 1-22.31808-23.31136 23.3472 23.3472 0 0 1 22.31808-23.31136z m163.28192 0h367.93344a23.32672 23.32672 0 0 1 23.31136 23.31136 23.31648 23.31648 0 0 1-23.31136 23.31136H407.4752a23.32672 23.32672 0 0 1 0-46.62272z m-163.28192 186.74176h46.8736a23.296 23.296 0 0 1 16.47616 39.77728 23.31136 23.31136 0 0 1-16.47616 6.82496h-46.8736a23.3216 23.3216 0 0 1-16.9472-40.0384 23.25504 23.25504 0 0 1 16.9472-6.56384z m163.28192 0h367.93344a23.30624 23.30624 0 1 1 0 46.62272H407.4752a23.32672 23.32672 0 0 1 0-46.62272zM244.19328 455.68h46.8736a23.33696 23.33696 0 0 1 0 46.6432h-46.8736a23.33696 23.33696 0 0 1 0-46.6432z m531.21536 46.6432H407.4752a23.33696 23.33696 0 0 1 0-46.6432h367.93344a23.33184 23.33184 0 0 1 0 46.6432z"
            fill="#ED7625" p-id="2643"></path>
        </svg>物料基本档</el-menu-item>

      <!-- <el-sub-menu index="2-3">
                <template #title @click="jumpto('/Products/ProductXiang')">溯源管理-溯源详情-养殖信息</template>
                <el-menu-item index="2-3-1" @click="jumpto('/Products/ProductXiang')">溯源管理-溯源详情-养殖信息-设置养殖信息</el-menu-item>
                <el-menu-item index="2-3-2">溯源管理-溯源详情-养殖信息-设置企业信息</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="2-4">
                <template #title>溯源管理-溯源详情-屠宰信息</template>
                <el-menu-item index="2-4-1">溯源管理-溯源详情-屠宰信息-设置屠宰信息</el-menu-item>
                <el-menu-item index="2-4-2">溯源管理-溯源详情-屠宰信息-设置企业信息</el-menu-item>
              </el-sub-menu> -->
    </el-sub-menu>
    <el-sub-menu index="4">
      <template #title>
        <svg t="1734572274087" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
          p-id="9232" width="20" height="20">
          <path
            d="M495.61088 288.84992c-34.8416 3.17952-71.4752 12.40576-108.79488 25.46176l14.2848-71.30112-49.93024-12.17024-15.36 103.3216a1128.37632 1128.37632 0 0 0-23.63904 10.37824l-49.4592-104.64768-44.8768 22.7072L270.91456 364.0832a1120.86016 1120.86016 0 0 0-21.59616 10.98752L159.70304 321.32608l-22.2976 46.3104 64.2304 34.26816c-94.55104 57.6-162.98496 130.09408-150.31296 229.92384 11.6736 91.95008 106.82368 233.79456 249.34912 301.10208 96.70656 45.66016 171.45856 22.75328 197.76512 11.61728 6.64064-2.80576 13.6192-4.97152 19.09248-4.80256 9.12896 0.27136 24.56576 0.9728 36.43904 5.48352 19.01056 7.1936 30.41792 25.9584 30.41792 25.9584s-7.99744-20.3776-1.48992-39.63392c4.06016-12.032 12.58496-24.07424 18.17088-31.29344 3.3536-4.34176 9.55392-8.40192 15.93344-11.74016 25.30304-13.2608 90.6496-56.576 116.77184-160.2816 17.14176-68.07552 16.93696-138.28608 5.84704-201.216-128-10.5472-230.4768-111.03744-244.00896-238.17216z"
            fill="#F5564D" p-id="9233"></path>
          <path
            d="M758.07232 51.2c-118.59456 0-214.7328 96.13824-214.7328 214.7328s96.13824 214.7328 214.7328 214.7328C876.66176 480.6656 972.8 384.52736 972.8 265.9328S876.66176 51.2 758.07232 51.2z m95.7184 266.24h-98.30912c-5.71392 0-10.34752-8.3968-10.34752-14.11072 0-0.90112-1.21344-3.64032-0.9984-4.46976-0.21504-0.83456-1.73056-3.56864-1.73056-4.46976V149.51424c0-5.71392 4.52096-10.34752 10.24-10.34752 5.7088 0 10.24 4.6336 10.24 10.34752V291.84h90.91072c5.71392 0 10.34752 7.08608 10.34752 12.8s-4.63872 12.8-10.35264 12.8z"
            fill="#FF9292" p-id="9234"></path>
          <path
            d="M422.5024 850.10944s78.30016 0.0256 161.48992-82.07872l14.8992 13.0048s-48.08704 73.79968-165.66272 90.17344l-10.7264-21.09952zM451.62496 781.88544s52.81792-6.54848 86.45632-51.37408l9.48736 11.84768s-5.632 30.592-85.53472 59.08992l-10.40896-19.56352z"
            fill="#FFFFFF" p-id="9235"></path>
        </svg><span>销售管理</span>
      </template>
      <el-menu-item index="4-1" @click="jumpto('/CustomerProfiles/CustomerProfileListView')"><svg t="1734572229046"
          class="icon" viewBox="0 0 1126 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8029" width="20"
          height="20">
          <path
            d="M563.2 505.173333c-199.68 0-288.426667 76.8-290.133333 281.6v3.413334c0 3.413333 1.706667 6.826667 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h554.666667c3.413333 0 6.826667-1.706667 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24v-3.413334c-3.413333-204.8-93.866667-281.6-291.84-281.6zM590.506667 682.666667c0 18.773333-8.533333 34.133333-27.306667 34.133333s-23.893333-15.36-23.893333-34.133333v-68.266667c0-18.773333 5.12-34.133333 23.893333-34.133333 18.773333 0 27.306667 15.36 27.306667 34.133333v68.266667z"
            fill="#FD3C13" p-id="8030"></path>
          <path
            d="M742.4 0h-358.4C199.68 0 51.2 148.48 51.2 332.8v358.4C51.2 875.52 199.68 1024 384 1024h358.4C926.72 1024 1075.2 875.52 1075.2 691.2v-358.4C1075.2 148.48 926.72 0 742.4 0z m95.573333 855.04H288.426667c-37.546667 0-68.266667-30.72-68.266667-68.266667C218.453333 604.16 290.133333 494.933333 436.906667 457.386667c-29.013333-30.72-46.08-71.68-46.08-117.76 0-93.866667 76.8-170.666667 170.666666-170.666667s170.666667 76.8 170.666667 170.666667c0 44.373333-17.066667 85.333333-46.08 116.053333C832.853333 493.226667 906.24 602.453333 904.533333 785.066667c1.706667 39.253333-29.013333 69.973333-66.56 69.973333z"
            fill="#FD3C13" p-id="8031"></path>
          <path
            d="M564.906667 457.386667c64.853333 0 117.76-52.906667 117.76-117.76 0-64.853333-52.906667-117.76-117.76-117.76-64.853333 0-117.76 52.906667-117.76 117.76-1.706667 64.853333 51.2 117.76 117.76 117.76z"
            fill="#FD3C13" p-id="8032"></path>
        </svg>客户档案</el-menu-item>
      <el-menu-item index="4-3" @click="jumpto('/SalesOrderListShow')">销售订单</el-menu-item>
      <el-menu-item index="4-4" @click="jumpto('')">订单进度图</el-menu-item>
      <el-menu-item index="4-5" @click="jumpto('')">备货订单</el-menu-item>
      <el-menu-item index="4-6" @click="jumpto('/SalesOrder/DeliverynoticeShow')">发货通知单</el-menu-item>
      <el-menu-item index="4-7" @click="jumpto('/Invoicingmemo/BillingListView')">开票通知单</el-menu-item>
      <el-menu-item index="4-8" @click="jumpto('/ReturnNotice/ReturnNoticeListView')">退货通知单</el-menu-item>
      <el-menu-item index="4-9" @click="jumpto('')">销售订单计划表</el-menu-item>
      <el-menu-item index="4-10" @click="jumpto('/ShipmentsTZD/SeleteOrder')">销售订单明细表</el-menu-item>
      <el-menu-item index="4-11" @click="jumpto('/ShipmentsTZD/DeliveGoodsView')">7天交货明细表</el-menu-item>
    </el-sub-menu>

    <el-sub-menu index="30">
      <template #title>
        <span>销售报表</span>
      </template>
      <el-menu-item index="30-1" @click="jumpto('/ShipmentsTZD/shipmentsDetails')">发货通知明细表</el-menu-item>
      <el-menu-item index="30-2" @click="jumpto('/ReturnNotice/ReturnDetaliView')">销售退货明细表</el-menu-item>
      <el-menu-item index="30-3" @click="jumpto('/Invoicingmemo/BillingDetailsView')">开票通知明细表</el-menu-item>
    </el-sub-menu>



    <el-sub-menu index="5">
      <template #title>
        <span>采购管理</span>
      </template>
      <el-menu-item index="5-1" @click="jumpto('/PurchasingManagement/SupplierView')">原料供应商</el-menu-item>
      <el-menu-item index="5-2" @click="jumpto('/PurchasingManagement/PurchaseOrde')">采购订单</el-menu-item>
      <el-menu-item index="5-2" @click="jumpto('/PurchasingManagement/PurchasedOrderReportView')">采购订单明细报表</el-menu-item>
      <el-menu-item index="5-3" @click="jumpto('/PurchaseInvoices/PurchaseInvoicesListView')">采购发票</el-menu-item>
      <el-menu-item index="5-4" @click="jumpto('/PurchasingManagement/PurchasedGoods')">采购到货单</el-menu-item>
      <el-menu-item index="5-5"
        @click="jumpto('/PurchaseReturnOrders/PurchaseReturnOrderListView')">采购退货单</el-menu-item>


    </el-sub-menu>

    <el-sub-menu index="6">
      <template #title>
        <svg t="1734572339080" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
          p-id="10250" width="20" height="20">
          <path
            d="M921.6 486.4c-6.4 0-16-3.2-22.4-6.4L512 176 121.6 480c-16 12.8-38.4 9.6-51.2-6.4-12.8-16-9.6-38.4 6.4-51.2L489.6 99.2c12.8-9.6 32-9.6 44.8 0l412.8 323.2c16 12.8 19.2 35.2 6.4 51.2-9.6 9.6-19.2 12.8-32 12.8z"
            fill="#19AA8D" p-id="10251"></path>
          <path
            d="M220.8 953.6c-19.2 0-35.2-16-35.2-35.2V364.8c0-19.2 16-35.2 35.2-35.2s35.2 12.8 35.2 35.2v553.6c0 19.2-16 35.2-35.2 35.2zM800 953.6c-19.2 0-35.2-16-35.2-35.2V364.8c0-19.2 16-35.2 35.2-35.2 19.2 0 35.2 16 35.2 35.2v553.6c0 19.2-16 35.2-35.2 35.2z"
            fill="#19AA8D" p-id="10252"></path>
          <path
            d="M924.8 956.8H102.4c-9.6 0-19.2-9.6-19.2-19.2s9.6-19.2 19.2-19.2h819.2c9.6 0 19.2 9.6 19.2 19.2s-6.4 19.2-16 19.2zM652.8 540.8h-291.2c-9.6 0-19.2-9.6-19.2-19.2s9.6-19.2 19.2-19.2h291.2c9.6 0 19.2 9.6 19.2 19.2s-9.6 19.2-19.2 19.2z"
            fill="#19AA8D" p-id="10253"></path>
          <path
            d="M467.2 873.6h-76.8c-9.6 0-16-6.4-16-16v-76.8c0-9.6 6.4-16 16-16h76.8c9.6 0 16 6.4 16 16v76.8c0 9.6-6.4 16-16 16zM636.8 873.6h-76.8c-9.6 0-16-6.4-16-16v-76.8c0-9.6 6.4-16 16-16h76.8c9.6 0 16 6.4 16 16v76.8c0 9.6-6.4 16-16 16zM467.2 704h-76.8c-9.6 0-16-6.4-16-16v-76.8c0-9.6 6.4-16 16-16h76.8c9.6 0 16 6.4 16 16v76.8c0 6.4-6.4 16-16 16z"
            fill="#F8AC59" p-id="10254"></path>
        </svg><span>仓库管理</span>
      </template>
      <el-menu-item index="6-1" @click="jumpto('/Warehouses/WarehouseListView')"><svg t="1734572339080" class="icon"
          viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10250" width="20" height="20">
          <path
            d="M921.6 486.4c-6.4 0-16-3.2-22.4-6.4L512 176 121.6 480c-16 12.8-38.4 9.6-51.2-6.4-12.8-16-9.6-38.4 6.4-51.2L489.6 99.2c12.8-9.6 32-9.6 44.8 0l412.8 323.2c16 12.8 19.2 35.2 6.4 51.2-9.6 9.6-19.2 12.8-32 12.8z"
            fill="#19AA8D" p-id="10251"></path>
          <path
            d="M220.8 953.6c-19.2 0-35.2-16-35.2-35.2V364.8c0-19.2 16-35.2 35.2-35.2s35.2 12.8 35.2 35.2v553.6c0 19.2-16 35.2-35.2 35.2zM800 953.6c-19.2 0-35.2-16-35.2-35.2V364.8c0-19.2 16-35.2 35.2-35.2 19.2 0 35.2 16 35.2 35.2v553.6c0 19.2-16 35.2-35.2 35.2z"
            fill="#19AA8D" p-id="10252"></path>
          <path
            d="M924.8 956.8H102.4c-9.6 0-19.2-9.6-19.2-19.2s9.6-19.2 19.2-19.2h819.2c9.6 0 19.2 9.6 19.2 19.2s-6.4 19.2-16 19.2zM652.8 540.8h-291.2c-9.6 0-19.2-9.6-19.2-19.2s9.6-19.2 19.2-19.2h291.2c9.6 0 19.2 9.6 19.2 19.2s-9.6 19.2-19.2 19.2z"
            fill="#19AA8D" p-id="10253"></path>
          <path
            d="M467.2 873.6h-76.8c-9.6 0-16-6.4-16-16v-76.8c0-9.6 6.4-16 16-16h76.8c9.6 0 16 6.4 16 16v76.8c0 9.6-6.4 16-16 16zM636.8 873.6h-76.8c-9.6 0-16-6.4-16-16v-76.8c0-9.6 6.4-16 16-16h76.8c9.6 0 16 6.4 16 16v76.8c0 9.6-6.4 16-16 16zM467.2 704h-76.8c-9.6 0-16-6.4-16-16v-76.8c0-9.6 6.4-16 16-16h76.8c9.6 0 16 6.4 16 16v76.8c0 6.4-6.4 16-16 16z"
            fill="#F8AC59" p-id="10254"></path>
        </svg>仓库列表</el-menu-item>
      <el-menu-item index="6-2" @click="jumpto('')">期初库存</el-menu-item>
    </el-sub-menu>
    <el-sub-menu index="9">
      <template #title>
        <span>出库管理</span>
      </template>
      <el-menu-item index="7-1" @click="jumpto('/SaleOutSearchView')">销售出库</el-menu-item>
      <!-- <el-menu-item index="9-2" @click="jumpto('/PurchasingManagement/PurchaseOrde')">采购订单</el-menu-item>
      <el-menu-item index="9-1" @click="jumpto('/PurchaseInvoices/PurchaseInvoicesListView')">采购发票</el-menu-item> -->
    </el-sub-menu>
    <el-sub-menu index="10">
      <template #title>
        <span>入库管理</span>
      </template>
      <el-menu-item index="10-1" @click="jumpto('/PurchaseWarehousingShow')">采购入库</el-menu-item>
    </el-sub-menu>
    <el-sub-menu index="11">
      <template #title>
        <span>统计报表</span>
      </template>
      <el-menu-item index="11-1" @click="jumpto('/PurchaseWarehousingDelads')">采购入库明细</el-menu-item>
      <el-menu-item index="11-2" @click="jumpto('/Churuku')">出入库明细</el-menu-item>
      <el-menu-item index="11-3" @click="jumpto('/ShipmentsTZD/shipmentsDetails')">发货通知明细表</el-menu-item>
      <el-menu-item index="11-4" @click="jumpto('')">销售退货明细表</el-menu-item>
      <el-menu-item index="11-5" @click="jumpto('/Invoicingmemo/BillingDetailsView')">开票通知明细表</el-menu-item>
      <el-menu-item index="11-6" @click="jumpto('/PurchasingManagement/PurchaseInvoiceDetail')">采购发票明细表</el-menu-item>
      <el-menu-item index="11-7"
        @click="jumpto('/PurchasingManagement/PurchaseOutWarehouseDetails')">销售出库明细表</el-menu-item>
    </el-sub-menu>
    <el-sub-menu index="12">
      <template #title>
        <span>日志</span>
      </template>
      <el-menu-item index="10-1" @click="jumpto('/LogsList/LogListView')">日志列表</el-menu-item>
    </el-sub-menu>
    <el-menu-item index="20">
      <span @click="exit"><el-icon>
          <SwitchButton />
        </el-icon>退出登录</span>

    </el-menu-item>
  </el-menu>
</template>

<script setup lang="ts">
import { ref } from 'vue';
// import { useRouter } from 'vue-router';
import { useRouter } from 'vue-router';
import { ElMessage, ElMessageBox } from 'element-plus';
const router = useRouter();

const jumpto = (url: any) => {
  router.push(url);
}
const exit = () => {
  localStorage.removeItem("islogin")
  router.push('/');
  ElMessage.warning('退出登录成功')
}



</script>

<style scoped></style>

<style>
#building {
  background: url("../views/Img/4A{EV9P[42YQVP4{G99]AQ7_tmb.png");
  width: 20%;
  height: 100%;
  position: fixed;
  background-size: 100% 100%;
}
</style>